package server

import "ws-demo-go/internal/message/common"

// Hook 消息层服务端定义的钩子
type Hook interface {
	OnConnected(msgConn *Connection)                    // 连接建立回调
	OnDisconnected(msgConn *Connection)                 // 连接断开回调
	OnMessage(msgConn *Connection, msg *common.Message) // 消息接收回调
}
